package com.kehongborui.fliggy.service;

import com.kehongborui.fliggy.entity.User;

/**
 * @author zhang peng yang ming
 * @CopyRight (C) http://www.csdn.com
 * @brief
 * @email 122162005@qq.com
 * @date 2018-09-05
 */
public interface UserService {
    /**
     * 根据电话号码查找用户
     * @param tel
     * @return
     */
    User findByTel(String tel);
    User findByEmail(String email);
    boolean create(User user);

    boolean enabledAccount(String email);

    User findById(String uid);

    void resetAttempts();
}
